Type fallback refactorings#159026
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Type fallback refactorings
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (6a25a06): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 3.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -5.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.1%, secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 487.967s -> 488.861s (0.18%) |
68f06e3 to
8992f0e
Compare
|
I think the perf regression is noise. |
| .map(|&ty_id| self.shallow_resolve(Ty::new_var(self.tcx, ty_id))) | ||
| .filter_map(|ty| ty.ty_vid()) | ||
| .map(|vid| self.root_var(vid)) |
There was a problem hiding this comment.
that should also be a probe_with_root_vid i think? seems like a very cumbersome way to get the root vid of a ty var
There was a problem hiding this comment.
The problem is that everything to do with type variables is private. See 680fc04 for what needs to be made public.
|
unsure about the last commit after applying my other review comments, but r=me after nits on the other changes |
|
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
|
@lcnr please re-review, as I'm unsure about #159026 (comment) and 8992f0e. |
This comment has been minimized.
This comment has been minimized.
4f25f0f to
680fc04
Compare
r? types
Tybefore matching them backcc @lcnr